package com.joy.mms.domain.bo;

import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import com.joy.common.core.validate.AddGroup;
import com.joy.common.core.validate.EditGroup;
import com.joy.common.core.domain.TreeEntity;

/**
 * 设备分类业务对象 mms_machine_category
 *
 * @author Joy
 * @date 2024-12-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MachineCategoryBo extends TreeEntity<MachineCategoryBo> {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 分类编码
     */
    @NotBlank(message = "分类编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String categoryCode;

    /**
     * 分类编码
     */
    @NotBlank(message = "分类编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String categoryName;

    /**
     * 状态
     */
//    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


    /**
     * 是否有下一级
     */
//    @NotNull(message = "是否有下一级不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long hasChild;

    /**
     * 类型
     */
//    @NotBlank(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 根id
     */
//    @NotBlank(message = "根id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String rootId;


}
